<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>用户操作日志</title>
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<link rel="stylesheet" type="text/css"
	href="easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="easyui/themes/icon.css">
<!--引入Jquery主文件-->
<script type="text/javascript" src="easyui/jquery.min.js"></script>
<!--引入JqueryEasyUI主文件-->
<script type="text/javascript" src="easyui/jquery.easyui.min.js"></script>
<!--让easyUI支持中文-->
<script type="text/javascript" src="easyui/locale/easyui-lang-zh_CN.js"></script>
</head>
<body>
	<table title="用户操作日志" class="easyui-datagrid" id="dg"
		data-options="url:'log/queryAll.do',
	fitColumns:true,
	collapsible:true,
	toolbar:'#tb',
	rownumbers:true,
	showFooter:true,
	pagination:true,
    pageList : [ 5,10,15,20 ],
	pageSize : 5, 
	checkOnSelect : true,
	selectOnCheck : true,
	">
		<thead>
			<tr>
				<th hidden="hidden" data-options="field:'optionId',resizable:false"width="5%">编号</th>
				<th data-options="field:'optionUser',resizable:false" width="10%">操作人</th>
				<th data-options="field:'optionType',resizable:false" width="10%">操作</th>
				<th data-options="field:'optionObject',resizable:false" width="10%">表</th>
				<th data-options="field:'optionTime',resizable:false" width="10%">时间</th>
			
			</tr>
		</thead>
	</table>
	<div id="tb" style="height: auto;">
		<div>
				<input class="easyui-searchbox" data-options="prompt:'请输入搜索信息',searcher:selectUser" style="width:200px" /> 
		</div>

	</div>
</body>
<script type="text/javascript">
	function selectUser(value){
		var options = $("#dg").datagrid("getPager" ).data("pagination" ).options;  
		var page = options.pageNumber;
		var pageSize = options.pageSize;
	  	//利用ajax,来获取后台查询数据
			$.post("log/queryAll.do","page="+page+"&pageSize="+pageSize+"&keyWord="+value,function(data){
			//msg可以是AJAX返回的数据也可以自定义的JSON格式的字符串
			$('#dg').datagrid('loadData', JSON.parse(data));
		},"text");
	}
</script>
</html>
